package Homework;

public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    Car(){

    }
    Car(String brand,String color,double price,int capacity){
        this.brand = brand;
        this.color = color;
        this.color = color;
        this.capacity = capacity;
        this.price = price;

    }
    void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+capacity+"座的"+price+"钱的车启动了..");
    }
    void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+capacity+"座的"+price+"钱的车跑起来了..");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+capacity+"座的"+price+"钱的车停止了..");
    }

}
